package com.atguigu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName Catelog2Vo
 * @Description 2级分类Vo
 * @Author Administrator
 * @Date 2022/6/21 19:20
 * @Version 1.0
 **/
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Catelog2Vo {

    private String catalogId;   //1级分类ID
    private List<Catelog3Vo> catalog3List;// 三级子分类
    private String id;
    private String name;

    /*
    三级分类Vo
     */
    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    public static class Catelog3Vo{
        private String catalog2Id; //父分类，2级分类id
        private String id;
        private String name;
    }

}
